<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <title>Document</title>
</head>
<body>
    <table class="table">
        <tr>
            <td><b>id</b></td>
            <td><b>用户名</b></td>
            <td><b>密码</b></td>
            <td><b>性别</b></td>
            <td><b>年龄</b></td>
            <td><b>手机号</b></td>
            <td><b>头像</b></td>
            <td><b>操作</b></td>
        </tr>
        @foreach($res as $v)
            <tr>
                <td>{{$v['id']}}</td>
                <td>{{$v['user_name']}}</td>
                <td>{{$v['user_password']}}</td>
                <td>@if($v['sex']==1)
                    男
                    @else
                    女
                    @endif
                </td>
                <td>{{$v['age']}}</td>
                <td>{{$v['phone']}}</td>
                <td><img src="pageImg?id={{$v['id']}}" alt=""></td>
                <td>
                    <a href="del?id={{$v['id']}}">删除</a>
                    <a href="down?id={{$v['id']}}">下载头像</a>
                </td>
            </tr>
        @endforeach
    </table>
    {{$res -> links()}}
</body>
</html>